import wepy from 'wepy';
// import util from './util';
// import md5 from './md5';
import tip from './tip'
const wxRequest = async(params = {}, url) => {

    if(params.loadeding==true){
   
    }else{

        tip.loading();
    }
   
    let data = params.query || {};
    data.id = "string";
    data.method="string";
    data.sign = "string";
    data.source="WHALE";
    data.timestamp="WHALE";
    data.access_key="WHALE";
    let res = await wepy.request({
        url: url,
        method: params.method || 'GET',
        data: data,
        header: { 'Content-Type': 'application/json' },
    });
    if(params.loadeding==true){
   
    }else{
        tip.loaded();
    }
   
    return res;
};
module.exports = {
    wxRequest
}
